
******************************************************
** Table 3: Main Paytm Results (Cross-section district effect)
******************************************************

use "$datadir\ewallet\maindata.dta", clear
	
	label var postXtreatment "Exposure $\times$ $ 1 \left(\text{t }\geq \text{t}_0\right)$"
	
	reghdfe  logamount postXtreatment  if $filters, a($fe $controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_2", tex(frag) ctitle("log(amount)") dec(3) bracket label addtext(Baseline Controls $\times$ Month f.e., $\checkmark$ , Other controls $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  replace
	reghdfe  lognumfirms postXtreatment  if $filters, a($fe $controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_2", tex(frag) ctitle("log(\# firms)") dec(3) bracket label addtext(Baseline Controls $\times$ Month f.e., $\checkmark$ , Other controls $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe  lognewfirms postXtreatment  if $filters, a($fe $controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_2", tex(frag) ctitle("log(\# firms)") dec(3) bracket label addtext(Baseline Controls $\times$ Month f.e., $\checkmark$ , Other controls $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
